package com.story.api.moduler.user.controller.dto;

import com.story.api.moduler.user.validator.dto.Credence;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @author Administrator
 * @decription
 * @Date 2018-01-03 11:36
 */
public class AuthRequest implements Credence{

    @NotBlank(message = "用户名不能为空")
    private String credenceName;

    @NotBlank(message = "密码不能为空")
    private String credenceCode;

    @NotBlank(message = "认证类型不能为空")
    private String credenceType;

    public void setCredenceName(String credenceName) {
        this.credenceName = credenceName;
    }

    public void setCredenceCode(String credenceCode) {
        this.credenceCode = credenceCode;
    }

    public void setCredenceType(String credenceType) {
        this.credenceType = credenceType;
    }

    @Override
    public String getCredenceName() {
        return this.credenceName;
    }

    @Override
    public String getCredenceCode() {
        return this.credenceCode;
    }

    @Override
    public String getCredenceType() {
        return this.credenceType;
    }
}
